<?php

require_once './application/core/CoreBase.php';
require_once './application/models/Tables/map.php';
require_once './application/core/Creation/creationCore.php';
require_once './application/entity/creation/list.php';

class listCore extends creationCore
{

    private $_table;
    private $_obj;

    public function __construct(&$controller)
    {
        parent::__construct($controller);
    }

    public function listMap()
    {
        $this->_obj = new creationCore($controller);
        $this->_obj->liensIpRespList($this->_controller->_idClient);
        $this->_table = new TableMap();
        $obj = new ListNameMap();
        $obj->data = $this->_table->getLstMap();
        echo Zend_Json_Encoder::encode($obj);
    }

}